package config;

import model.HTItem;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by CatM on 18/1/28.
 */
public class Config {

    //轮询请求时间
    public static final int POLL_TIME = 1000 * 60 * 15;

    public static final String REGIX_DISCOUNT = "(\\d+(\\.\\d+)?)+折";

    public static final String REGIX_AMOUNT = "(\\d+(\\.\\d+)?)+元";

    public static final String REGIX_AMOUNT1 = "￥+(\\d+(\\.\\d+)?)";

    //允许push的次数
    public static final int PUSH_COUNT = 1;

    /**
     * 配置的要匹配的产品
     */
    public static List<HTItem> htItems = Arrays.asList(
            new HTItem.Builder().brand("origins").discount((float) 6.9).build(),
            new HTItem.Builder().brand("canmake").product("03").amount(1300).build(),
            new HTItem.Builder().brand("colourpop").discount((float) 7.9).build(),
            new HTItem.Builder().brand("jo malone").product("娃娃机").build()
    );
}
